<style type="text/css">
p.menu a {
color: #000000;
background: #9955tt;
font: 12px Verdana;
text-decoration: none;
text-align: center;
border: 1px solid #000000;
padding: 1px 5px;
margin-right:1px;
}
p.menu a:hover {
background: #a0f3ac;
}
</style>

<body>
<p class="menu">
<a href="http://localhost/sf_casa/web/rlinux_abe.php/principal/menuAdm">Menu Administração</a>
<a href="http://localhost/sf_casa/web/rlinux_abe.php/dias/create">Criar Dia</a>
<a href="http://localhost/sf_casa/web/rlinux_abe.php/dias/busca">Buscar Dia</a>
</p>
</body>

<b><?php echo $pager->getNbResults() ?></b> resultados encontrados.<br />
Mostrando resultados <?php echo $pager->getFirstIndice() ?> a  <?php echo $pager->getLastIndice() ?>

<?php
// auto-generated by sfPropelCrud
// date: 2007/10/29 14:34:29
?>
<h1>Dias Ativos</h1>

<table>
<thead>
<tr>
  <th>Id</th>
  <th>Dia</th>
  <th>Ativo</th>
  <th>Criado em</th>
  <th>Atualizado em</th>
  <th>Usuário</th>
</tr>
</thead>
<tbody>
<?php foreach ($pager->getResults() as $dias): ?>
<?php
?>
<tr>
      <?php
       if (($dias->getAtivo()) == 1) {
      ?>
    <td><?php echo link_to($dias->getId(), 'dias/show?id='.$dias->getId()) ?></td>
      <td><?php echo $dias->getDia() ?></td>
      <td><?php echo $dias->getAtivo() ?></td>
      <td><?php echo $dias->getCreatedAt() ?></td>
      <td><?php echo $dias->getUpdatedAt() ?></td>
      <td><?php echo $dias->getUsuarioId() ?></td>
      <?php } ?>
  </tr>
<?php endforeach; ?>
</tbody>
</table>

<br>
<?php if ($pager->haveToPaginate()): ?> 
  <?php echo link_to('&laquo;', 'dias/list?page='.$pager->getFirstPage()) ?>
  <?php echo link_to('&lt;', 'dias/list?page='.$pager->getPreviousPage()) ?>
  <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
    <?php echo ($page == $pager->getPage()) ? $page : link_to($page, 'dias/list?page='.$page) ?>
    <?php if ($page != $pager->getCurrentMaxLink()): ?> - <?php endif ?>
  <?php endforeach ?>
  <?php echo link_to('&gt;', 'dias/list?page='.$pager->getNextPage()) ?>
  <?php echo link_to('&raquo;', 'dias/list?page='.$pager->getLastPage()) ?>
<?php endif ?>